import Login from './views/Login.vue'
import Home from './views/Home.vue'
import Calendar from './views/sysmanager/Calendar.vue'
import ConferenceRoom from './views/sysmanager/ConferenceRoom.vue'
import Leader from './views/sysmanager/Leader.vue'
import ServiceDept from './views/sysmanager/ServiceDept.vue'
import Staff from './views/sysmanager/Staff.vue'
import SystemSettings from './views/sysmanager/SystemSettings.vue'
import SystemUser from './views/sysmanager/SystemUser.vue'
import Apply from './views/conferenceroom/Apply.vue'
import Query from './views/conferenceroom/Query.vue'
import Review from './views/conferenceroom/Review.vue'
import Supplement from './views/conferenceroom/Supplement.vue'
import PersonalInfo from './views/personal/PersonalInfo.vue'
import WorkFlow from './views/personal/WorkFlow.vue'

let routes = [
    {
        path: '/',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/home',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-custom-sys-manager',
        hidden: true,
        children: [
            { path: '/leader', component: Leader, name: '领导动态管理',hidden: true },
            { path: '/conferenceroom', component: ConferenceRoom, name: '会议室管理',hidden: true  },
            { path: '/servicedept', component: ServiceDept, name: '办事部门',hidden: true  },
            { path: '/staff', component: Staff, name: '员工管理',hidden: true  },
            { path: '/calendar', component: Calendar, name: '日历管理',hidden: true  },
            { path: '/systemuser', component: SystemUser, name: '系统用户管理',hidden: true  },
            { path: '/systemsettings', component: SystemSettings, name: '系统配置',hidden: true  },
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '会议室',
        iconCls: 'el-icon-custom-conference-room',
        hidden: true,
        children: [
            { path: '/apply', component: Apply, name: '申请',hidden: true  },
            { path: '/query', component: Query, name: '查询',hidden: true  },
            { path: '/review', component: Review, name: '审核',hidden: true  },
            { path: '/supplement', component: Supplement, name: '补单',hidden: true  }
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '个人中心',
        iconCls: 'el-icon-custom-personal',
        hidden: true,
        children: [
            { path: '/personalinfo', component: PersonalInfo, name: '个人资料',hidden: true  },
            { path: '/workflow', component: WorkFlow, name: '工作状态',hidden: true  }
        ]
    }
];

export default routes;
